import axios from "axios";

const request = axios.create({
  baseURL: "",
  timeout: 5000,
});

request.interceptors.request.use((config) => {
  // 在发送请求之前做些什么
  return config;
});

request.interceptors.response.use((response) => {
  // 对响应数据做点什么
  return response;
});

export default request;
